<template>
	<div>
		<!-- 中间的主体部分 -->
		<div>注册成功！</div>	
		<a v-on:click="goLogin()" style="cursor: default;">回到登录页面</a>
	</div>
</template>

<script>
	Register.registerResult = function() {
		return {
			data: function() {
				return {
				}
			},
			beforeRouteEnter: function(to, from, next) {
				console.log("login beforeRouteEnter. to: " + to);
				next(function(vm) {
					console.log(vm.$route);
				})
			},
			created: function() {
				console.log("login created.");
			},
			methods: {
				goLogin: function() {
					// 校验email数据
					router.push("/login");
				}
			}
		}
	}
</script>

<style>
	.login-btn {
		background-color: #FF0000;
	}
</style>